import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import HelloWorld from '../components/HelloWorld.vue'
import ArrangeClass from '../components/ArrangeClass.vue'
import Register from '../components/RegMange/Register.vue'
import ReturnReg from '../components/RegMange/ReturnReg.vue'
import Hospitalization from '../components/Hospitalization/hospitalization.vue'
import Drug from '../components/Medication/drug.vue'
import FinanceIn from '../components/Finance/FinanceIn.vue'
import FinanceOut from '../components/Finance/FinanceOut.vue'
import MedicineIn from '../components/Pharmacy/MedicineIn.vue'
import MedicineOut from '../components/Pharmacy/MedicineOut.vue'
import SchedulingMain from '../components/ArrangeClass/SchedulingMain.vue'
import JianYan from '../components/examine/JianYan.vue'
import MenZhen from '../components/clinic/MenZhen.vue'
import PaiBan from '../components/ArrangeClass/PaiBan.vue'
import record from '../components/clinic/record.vue'
import model from '../components/Medication/model.vue'
import arrange from '../components/arrange.vue'
import druginformation from '../components/Medication/druginformation.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
	children:[
		      {
		      	path:'menZhen',
		      	name:'MenZhen',
		      	component:MenZhen
		      },
			  {
			  	  path:'paiBan',
			  	  name:'PaiBan',
			  	  component:PaiBan
			  },
			  {
			  	  path:'druginformation',
			  	  name:'druginformation',
			  	  component:druginformation
			  },
			  {
			  	  path:'arrange',
			  	  name:'arrange',
			  	  component:arrange
			  },
			  {
			  	  path:'record',
			  	  name:'record',
			  	  component:record
			  },
			  {
			  	  path:'model',
			  	  name:'model',
			  	  component:model
			  },
			  {
				path:'register',
				name:'Register',
				component:Register
			  },
			  {
			  	  path:'returnReg',
			  	  name:'ReturnReg',
			  	  component:ReturnReg
			  },
			  {
			  	  path:'hospitalization',
			  	  name:'Hospitalization',
			  	  component:Hospitalization
			  },
			  {
			  	  path:'drug',
			  	  name:'Drug',
			  	  component:Drug
			  },
			  {
			  	  path:'financeIn',
			  	  name:'FinanceIn',
			  	  component:FinanceIn
			  },
			  {
			  	  path:'financeOut',
			  	  name:'FinanceOut',
			  	  component:FinanceOut
			  },
			  {
			  	  path:'medicineIn',
			  	  name:'MedicineIn',
			  	  component:MedicineIn
			  },
			  {
			  	  path:'medicineOut',
			  	  name:'MedicineOut',
			  	  component:MedicineOut
			  },
			  {
			  	  path:'schedulingMain',
			  	  name:'SchedulingMain',
			  	  component:SchedulingMain
			  },
			  {
			  	  path:'jianYan',
			  	  name:'JianYan',
			  	  component:JianYan
			  },
			  {
			  	  path:'/arrangeClass',
			  	  name:'ArrangeClass',
			  	  component:ArrangeClass
			  }
	]
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
	  path:'/helloWorld',
	  name:'HelloWorld',
	  component:HelloWorld
  },
 
  {
  	  path:'/arrangeClass',
  	  name:'ArrangeClass',
  	  component:ArrangeClass
  }
 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
